import {useRecoilState} from "recoil";
import {textState} from "@/models/user";
import { useNavigate } from "react-router-dom"
import {charCountState} from "@/models/user";
const My=()=>{
    const [state,setSate] = useRecoilState(charCountState);
    const navigate = useNavigate();
    return <div onClick={()=>{
        setSate(()=>({date:Date.now()+""}))
        navigate("/home")
    }
    }>
        <div>
            my
        </div>
        <div>
            {state?.date}
        </div>
    </div>
}
export default My